import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../AppConfig/Config.dart';

class ServiceInformation extends StatefulWidget {
  const ServiceInformation({super.key});

  @override
  State<ServiceInformation> createState() => _ServiceInformationState();
}

class _ServiceInformationState extends State<ServiceInformation> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: MyColors.backgreyColor,
      appBar: AppBar(
        centerTitle: true,
        backgroundColor: Colors.white,
        leading: IconButton(icon: Icon(Icons.arrow_back_ios,color: Colors.black,),onPressed: (){Navigator.pop(context);},),
        title: Text("服务信息",style: TextStyle(fontWeight: FontWeight.w300,fontSize: 16.sp),),
      ),
      body: ListView(
        children: [
          Container(
            margin: EdgeInsets.only(left: 20.w,top: 8.h),
            child: Text("地址信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h,bottom: 10.h),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(10))),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text("使用目的",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("用户使用发货功能添加装卸货地址的，需要提供装卸货地址信息",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                Text("使用场景",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("用户使用发货功能时主动填写",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 20.w,top: 8.h),
            child: Text("位置信息",style: TextStyle(color: Colors.black,fontSize: 14.sp),),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 8.h),
            padding: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h,bottom: 10.h),
            decoration: BoxDecoration(
                color: Colors.white,
                borderRadius: BorderRadius.all(Radius.circular(10))),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text("使用目的",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("为用户在使用发货服务时，提供地理定位服务",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
                Divider(height: 16.h,color: MyColors.backgreyColor,),
                Text("使用场景",style: TextStyle(color: MyColors.textColor,fontSize: 14.sp,fontWeight: FontWeight.w600),),
                Text("用户使用发货服务时",style: TextStyle(color: MyColors.textColor,fontSize: 12.sp),),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
